package com.ruoyi.project.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 需求对象 requirement
 * 
 * @author ruoyi
 * @date 2025-04-06
 */
public class Requirement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 需求id */
    private Long reqId;

    /** 合同id */
    @Excel(name = "合同id")
    private Long contractId;

    /** 需求号 */
    @Excel(name = "需求号")
    private String reqCode;

    /** 需求名称 */
    @Excel(name = "需求名称")
    private String reqName;

    /** 需求部门 */
    @Excel(name = "需求部门")
    private Long deptId;

    /** 业务人员 */
    @Excel(name = "业务人员")
    private Long userId;

    /** 工作量 */
    @Excel(name = "工作量")
    private Long manday;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    /** 需求进度信息 */
    private List<ReqShedule> reqSheduleList;

    /** 部门对象 */
    @Excels({
            @Excel(name = "部门名称", targetAttr = "deptName", type = Excel.Type.EXPORT),
            @Excel(name = "部门负责人", targetAttr = "leader", type = Excel.Type.EXPORT)
    })
    private SysDept dept;

    /** 合同对象 */
    @Excels({
            @Excel(name = "合同名称", targetAttr = "contractName", type = Excel.Type.EXPORT)
    })
    private Contract contract;

    public Contract getContract()
    {
        return contract;
    }

    public void setContract(Contract contract)
    {
        this.contract = contract;
    }

    public void setReqId(Long reqId) 
    {
        this.reqId = reqId;
    }

    public Long getReqId() 
    {
        return reqId;
    }
    public void setContractId(Long contractId) 
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }
    public void setReqCode(String reqCode) 
    {
        this.reqCode = reqCode;
    }

    public String getReqCode() 
    {
        return reqCode;
    }
    public void setReqName(String reqName) 
    {
        this.reqName = reqName;
    }

    public String getReqName() 
    {
        return reqName;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setManday(Long manday) 
    {
        this.manday = manday;
    }

    public Long getManday() 
    {
        return manday;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }

    public List<ReqShedule> getReqSheduleList()
    {
        return reqSheduleList;
    }

    public void setReqSheduleList(List<ReqShedule> reqSheduleList)
    {
        this.reqSheduleList = reqSheduleList;
    }

    public SysDept getDept()
    {
        return dept;
    }

    public void setDept(SysDept dept)
    {
        this.dept = dept;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("reqId", getReqId())
            .append("contractId", getContractId())
            .append("reqCode", getReqCode())
            .append("reqName", getReqName())
            .append("deptId", getDeptId())
            .append("userId", getUserId())
            .append("manday", getManday())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("notes", getNotes())
            .append("reqSheduleList", getReqSheduleList())
            .toString();
    }
}
